﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using Core;

namespace SmartHouseWinService
{
    public partial class SmartHouseWinService : ServiceBase
    {
        private SmartHouse sh;


        public SmartHouseWinService()
        {

            InitializeComponent();
            sh = new SmartHouse();
        }

        protected override void OnStart(string[] args)
        {
            
            sh.Run();
        }

        protected override void OnStop()
        {
            
                sh.Stop();
            
        }
    }
}
